﻿<UserControl x:Class="IBTrader.Frontend.Connection.Control"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:my="clr-namespace:IBTrader.Frontend.Connection">
    <GroupBox Header="Connection" >
        <Grid VerticalAlignment="Top">
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition />
                <ColumnDefinition Width="100" />
            </Grid.ColumnDefinitions>
            <Label Content="Host:" Grid.Row="0"/>
            <Label Content="Port:" Grid.Row="1" />
            <Label Content="Client Id:" Grid.Row="2"/>
            <TextBox Grid.Row="0" Grid.Column="1" Name="TwsHost" Text="{Binding Path=IB.Host, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"/>
            <TextBox Grid.Row="1" Grid.Column="1" Name="TwsPort" Text="{Binding Path=IB.Port, UpdateSourceTrigger=PropertyChanged}"/>
            <TextBox Grid.Row="2" Grid.Column="1" Name="TwsClientId" Text="{Binding Path=IB.ClientId, UpdateSourceTrigger=PropertyChanged}"/>
        </Grid>
    </GroupBox>
</UserControl>
